home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / windows / games / wincapt.arj / WEPCODE.C < prev    next >
C/C++ Source or Header  |  1992-03-12  |  2KB  |  49 lines

  1. // -----------------------------------------------------------------
  2. // File name:  WEPCODE.C
  3. //
  4. // This is the source file that contains the DLL's Windows Exit
  5. // Procedure (WEP).
  6. //
  7. // Description of functions:
  8. //
  9. //    WEP         -     The Windows Exit Procedure.  Every DLL must have
  10. //                      one of these.
  11. //
  12. //
  13. // Development Team:  Dan Ruder
  14. //
  15. // Written by Microsoft Product Support Services, Windows Developer Support.
  16. //
  17. // Copyright (c) 1991, 1992 Microsoft Corporation.  All rights reserved.
  18. // -----------------------------------------------------------------
  19.  
  20. #include <windows.h>
  21.  
  22. // -----------------------------------------------------------------
  23. //
  24. // WEP()
  25. //
  26. // Purpose:  Called by Windows just before Windows unloads the DLL.
  27. //
  28. // Parameters:  int  nParameter     -  This is a dummy parameter.
  29. //                                     Windows expects this parameter
  30. //                                     so be sure to include it.
  31. //
  32. // Return Value:  Always returns 1 to indicate success.
  33. //
  34. // Comments:  Every DLL MUST have a WEP.  WEP, as defined here, is the
  35. //            proper way to define a WEP; do not do anything else
  36. //            except return 1 because the WEP is called on the Windows
  37. //            Kernel's stack, which is very small.
  38. //
  39. // History:
  40. //          Date        Author            Reason
  41. //          1/30/92     Dan Ruder         Created
  42. //
  43. // -----------------------------------------------------------------
  44.  
  45. int FAR PASCAL WEP (int nParameter)
  46.     {
  47.     return (1);
  48.     }
  49.